package com.xnyzc.lhy.order.feign.finance;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.order.entity.bill.OaDBill;
import com.xnyzc.lhy.order.entity.wallet.OaDFreeze;
import com.xnyzc.lhy.order.feign.fallback.finance.OaDFreezeServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "${feign.applicationName.finance}", fallback = OaDFreezeServiceFallback.class)
public interface IOaDFreezeService {

    @PostMapping("/finance/oa-dfreeze/saveFreezeBalance")
    Rv saveFreezeBalance(@RequestBody OaDFreeze oaDFreeze);

    /**
     * 添加账单记录
     * @param oaDBill 账单详情
     * @return
     */
    @PostMapping("/finance/oa-dbill/saveDriverBill")
    public Rv saveDriverBill(@RequestBody OaDBill oaDBill);

}
